<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <meta name="format-detection" content="telephone=no" />
    <title>承接详情</title>
    <link rel="stylesheet" href="../../css/reset.css" />
    <style>
        body {
            width: 100%;
            background-color: #f5f5f5;
            font-size: 0.26rem;
            padding-top: 0.5rem;
            height: auto;
            padding-bottom: 0.26rem;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            font-family: Helvetica;
            color: #333333;
            padding-bottom: 0.8rem;
        }

        .testFix {
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
        }

        .head {
            width: 100%;
            height: 47px;
            background-color: #ffffff;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            align-items: center;
            -webkit-align-items: center;
            box-sizing: border-box;
            border-bottom: 1px solid #e2e2e2;
            padding: 0 0.26rem;
        }

        .head img {
            width: 0.21rem;
            height: 0.36rem;
        }

        .head_title {
            font-size: 0.35rem;
            color: #333333;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }

        .showimg {
            width: 100%;
            height: 4.22rem;
        }

        .showimg img {
            width: 100%;
            height: 4.22rem;
        }

        .machine-detail {
            width: 6.9rem;
            margin: auto;
            background: #ffffff;
            border-bottom: 1px solid #e2e2e2;
        }

        .machine-detail-up {
            /* border-top: 1px solid #e2e2e2; */
            width: 100%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            -webkit-flex-direction: column;
            justify-content: space-between;
            -webkit-justify-content: space-between;
        }

        .up-left {
            margin-top: 0.14rem;
            height: auto;
            flex: 1;
        }

        .machine-preice {
            height: 0.76rem;
            font-size: 0.26rem;
            line-height: 0.76rem;
            color: #ffd203;
        }

        .machine-preice span {
            font-size: 0.52rem;
        }

        .machine-name {
            height: 1.2rem;
            font-size: 0.32rem;
            /* line-height: 1.3rem; */
            color: #181818;
            margin-top: 0.08rem;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            align-items: center;
            -webkit-align-items: center;
        }

        .machine-type {
            width: 0.64rem;
            height: 0.62rem;
            font-size: 0.2rem;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            -webkit-flex-dirention: column;
        }

        .up-right {
            height: 1.26rem;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: flex-end;
            -webkit-align-items: flex-end;
        }

        .machine-type span:first-of-type {
            width: 0.6rem;
            height: 0.34rem;
            border: 1px solid #ffd203;
            /* border-bottom: none; */
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            /* line-height: 0.34rem; */
            border-radius: 0.05rem 0.05rem 0 0;
        }

        .machine-type span:last-of-type {
            width: 0.6rem;
            height: 0.26rem;
            border: 1px solid #ffd203;
            text-align: center;
            font-size: 0.2rem;
            background-color: #ffd203;
            vertical-align: middle;
            border-radius: 0 0 0.05rem 0.05rem;
        }

        .machine-detail-down {
            height: 1.2rem;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            align-items: center;
            -webkit-align-items: center;
            color: #616161;
            font-size: 0.26rem;
        }

        .machine-detail-down p {
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            -webkit-flex-direction: column;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
        }

        .data-detail {
            background-color: white;
            /* margin-top: 0.18rem; */
            padding: 0 0.24rem;
            height: auto;
            padding-bottom: 0.48rem;
            box-sizing: border-box;
        }

        .data-detail ul {
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            -webkit-flex-direction: column;
            box-sizing: border-box;
            margin-top: 0.2rem;
        }

        .data-detail li {
            color: #616161;
            margin-top: 0.3rem;
        }

        .data-detail li:first-of-type {
            margin-top: 0.2rem;
            display: -webkit-flex;
            display: flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
        }

        .data-detail li span {
            font-size: 0.26rem;
            /* color: black; */
        }

        .suanli {
            background-color: #fff;
            padding: 0 0.24rem;
            width: 100%;
            margin-top: 0.2rem;
            box-sizing: border-box;
            color: #616161;
        }

        .suanli li {
            display: inline-block;
            display: flex;
            display: -webkit-flex;
            justify-content: flex-start;
            -webkit-justify-content: flex-start;
            align-items: center;
            -webkit-align-items: center;
            height: 0.9rem;
            border-bottom: 1px solid #e2e2e2;
        }

        .suanli li span>span {
            margin-left: 0.75rem;
        }

        .suanli li:first-of-type>span {
            margin-left: 0.75rem;
        }

        /* .suanli li:first-of-type {
    border-bottom: 1px solid #e2e2e2;
  } */

        .suanli li:last-of-type {
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            align-items: center;
            -webkit-align-items: center;
            border-bottom: none;
        }

        .intrduction {
            /* padding: 0 0.24rem; */
            background-color: white;
            margin-top: 0.2rem;
            box-sizing: border-box;
            width: 100%;
            height: auto;
        }

        .intrduction ul li {
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            -webkit-flex-direction: column;
            padding: 0 0.24rem;
        }

        .intrduction ul li p {
            height: 1.12rem;
            color: #fabf38;
            font-size: 0.3rem;
            line-height: 1.12rem;
            /* padding: 0 0.24rem; */
        }

        .intrduction ul li div {
            margin: 0;
            padding: 0;
            height: auto;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            -webkit-align-items: center;
            box-sizing: border-box;
            padding: 0.1rem 0.38rem 0.1rem 0.4rem;
            background-size: cover;
            border: 1px solid #f5f5f5;
            border-radius: 0.05rem;
        }

        /* .intrduction ul li:first-of-type div {
    background-image: url(../image/first/bejing.png);
  }
  .intrduction ul li:nth-of-type(2) div {
    background-image: url(../image/first/qwe.png);
  }
  .intrduction ul li:nth-of-type(3) div {
    background-image: url(../image/first/saj.png);
  }
  .intrduction ul li:last-of-type div {
    background-image: url(../image/first/zxc.png);
  } */

        .next {
            margin: auto;
            /* background-color: #f9af00; */
            color: #181818;
            height: 0.9rem;
            background-color: #ffd203;
            /* background: url(../image/my/next.png) center 0 no-repeat; */
            background-size: 100% 100%;
            line-height: 0.9rem;
            text-align: center;
            width: 6.9rem;
            /* border-radius: 0.3rem; */
            margin-top: 0.2rem;
        }

        .inputNull {
            /* background: url(../image/btn_bg.png) no-repeat center; */
            background-color: #ffd203;
            line-height: 0.9rem;
            border-radius: 0.05rem;
            background-size: cover;
        }

        .inputNotNull {
            background-color: #e5e5e5;
            line-height: 0.9rem;
            border-radius: 0.05rem;
            background-size: cover;
        }

        .rentNum {
            padding: 0 0.24rem;
            height: 0.7rem;
            font-size: 0.26rem;
            box-sizing: border-box;
            color: #999999;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            align-items: center;
            -webkit-align-items: center;
        }

        .rent-detail-list {
            margin-top: 0.9rem;
            display: none;
        }

        table {
            width: 100%;
            height: auto;
            padding: 0 0.24rem;
            box-sizing: border-box;
            background-color: #fff;
        }

        table td {
            text-align: center;
        }

        table thead tr {
            height: 1.06rem;
            vertical-align: middle;
        }

        table thead tr td {
            height: 1.06rem;
            vertical-align: middle;
            font-size: 0.28rem;
        }

        .test {
            margin: auto;
            text-align: center;
            margin-top: 0.4rem;
        }

        #fixBtn {
            border-top: 0.01rem solid #f5f5f5;
            width: 100%;
            /*height: 1.2rem;*/
            background: #ffffff;
            position: fixed;
            bottom: 0;
            left: 0;
            padding-bottom: 0.2rem;
            box-sizing: content-box;
        }

        .cover {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 2;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.3);
            text-align: center;
            /* display: flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;*/
            display: none;
        }

        .suanli-list {
            width: 4.52rem;
            border-radius: 0.15rem;
            height: 5.16rem;
            background-color: #fff;
            position: fixed;
            z-index: 3;
            top: 50%;
            left: 50%;
            margin-top: -2.58rem;
            margin-left: -2.26rem;
            overflow: hidden;
        }

        .list-up {
            width: 100%;
            height: 1.52rem;
            background-color: #ffd203;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
            flex-direction: column;
            -webkit-flex-direction: column;
        }

        .list-up p:first-of-type {
            color: #877011;
            font-size: 0.24rem;
        }

        .list-up p:last-of-type {
            color: #181818;
            font-size: 0.32rem;
            font-weight: 500;
            margin-top: 7px;
        }

        .list-down {
            width: 100%;
            height: 3.63rem;
            display: flex;
            display: -webkit-flex;
            justify-content: center;
            -webkit-justify-content: center;
            align-items: center;
            -webkit-align-items: center;
        }

        .list-down ul {
            width: 2.42rem;
            height: auto;
        }

        .list-down ul li {
            display: inline-block;
            height: 0.7rem;
            line-height: 0.7rem;
            color: #878787;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
            align-items: center;
            -webkit-align-items: center;
        }

        .list-down li span {
            font-weight: 500;
            color: #181818;
        }

        .off-cover {
            width: 0.64rem;
            height: 0.64rem;
            border-radius: 0.64rem;
            font-weight: 600;
            font-size: 0.36rem;
            text-align: center;
            line-height: 0.64rem;
            margin-top: 0.83rem;
            position: fixed;
            left: 47%;
            /* top: 50%; */
            margin-left: -0.32rem;
            top: 80%;
            margin-top: 3.58rem;
        }

        /* .off-cover {
  } */

        .cover-full {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 100;
            background-color: rgba(0, 0, 0, 0.6);
            width: 100%;
            height: 100%;
        }

        .enntueList {
            position: relative;
            top: 20%;
            left: 12%;
            background-color: #fff;
            width: 5.8rem;
            height: auto;
            border-radius: 0.1rem;
            /* padding-top: 0.66rem; */
            font-size: 0.24rem;
            text-align: center;
            line-height: 0.4rem;
            border-radius: 0.1rem;
        }

        .entrudetail {
            border-radius: 0.1rem 0.1rem 0 0;
            height: 2.4rem;
            background-color: #ffd203;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            -webkit-flex-direction: column;
            justify-content: center;
            -webkit-justify-content: center;
            font-size: 0.24rem;
            color: rgba(24, 24, 24, 0.65);
        }

        .enntueList span {
            font-weight: 500;
        }

        .button {
            margin-top: 0.56rem;
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            -webkit-justify-content: space-between;
        }

        .button p {
            width: 50%;
            height: 0.9rem;
            line-height: 0.9rem;
        }

        .back {
            background-color: #f1f1f1;
            border-radius: 0 0 0 0.1rem;
        }

        .ensurEnstru {
            background-color: #ffd203;
            border-radius: 0 0 0.1rem 0;
        }

        .off-covernew {
            width: 0.64rem;
            height: 0.64rem;
            border-radius: 0.64rem;
            font-weight: 600;
            font-size: 0.36rem;
            text-align: center;
            line-height: 0.64rem;
            margin-top: 0.83rem;
            position: fixed;
            left: 47%;
            /* top: 50%; */
            margin-left: -0.32rem;
            top: 80%;
            margin-top: 3.58rem;
        }

        .undertakePower {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 100;
            background-color: rgba(0, 0, 0, 0.6);
            width: 100%;
            height: 100%;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
        }

        .undertakePowerBox {
            width: 6.5rem;
            height: 6.88rem;
            background-color: #fff;
            border-radius: 0.1rem;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
        }

        .undertakePowerHead {
            width: 100%;
            margin-top: 0.5rem;
            text-align: center;
            font-size: .3rem;
            color: #181818;
            font-weight: 580;
            margin-bottom: 0.8rem;
        }

        .underTexttips p {
            width: 100%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            margin-bottom: 0.4rem;
        }

        .underTexttips p span:first-of-type {
            width: 100%;
            font-size: 0.28rem;
            color: #2b2b2b;
            font-weight: 550;
            margin-bottom: 0.1rem;
        }

        .underTexttips p span:last-of-type {
            font-size: 0.27rem;
            padding-left: 0.3rem;
            box-sizing: border-box;
            color: #6f6f6f;
        }
    </style>
</head>

<body>
    <div class="testFix">
        <div class="head" style="position: relative">
            <span id="goback"
                style="position: absolute;z-index: 1;left: 0;padding: 0 0.3rem; padding-right: 0.5rem;top: 0;height: 100%; box-sizing: border-box;line-height: 47px;">
                <img src="../../image/left_jiantouax.png" alt="" style="width: 10px;height: auto" />
            </span>
            <span class="head_title" style="display: block;width: 100%;text-align: center">
                详情
            </span>
            <img src="../../image/logoappx.png" alt="" style="height: 0.62rem;width: 0.62rem;">
        </div>
    </div>
    <div class="switchbutton" id="box" style="margin-top:0.7rem;">
        <div class="data-detail">
            <div class="machine-detail">
                <div class="machine-detail-up">
                    <div class="machine-name">
                        <span class="name-th">算力合约包 </span>
                        <div class="machine-type">
                            <span></span> <span class="isAlive"></span>
                        </div>
                    </div>
                    <div class="machine-preice">
                        <span>
                            <span class="deposit"></span>
                            <span class="moneyType" style="font-size: 0.26rem;padding-right: 0.15rem">CNY/T</span>
                        </span>
                    </div>
                </div>
                <div class="machine-detail-down">
                    <p class="daylimit">合约锁定期限 <span></span></p>
                    <p>剩余算力 <span class="disnum"></span></p>
                    <p class="numadd">最大下单限额 <span></span></p>
                </div>
            </div>
            <ul>
                <li class="bhpcshow" style="display: none;">
                    <span>
                        下单资格
                        <span style="margin-left: 0.72rem;">有效算龄大于等于1000T*天</span>
                    </span>
                    <span class="showlistnew"
                        style="color: #ffd203;margin-left: 0.1rem;display: inline-block;height: auto;">
                        <img src="../../image/mynumber.png" alt=""
                            style="width: 0.43rem;height: 0.43rem;margin-right: 0.1rem;" />
                    </span>
                </li>
                <li>
                    发币方式
                    <span style="margin-left: 0.72rem;">每日结算，次日发放至账户</span>
                </li>
                <li>
                    开挖日期 <span style="margin-left: 0.72rem;" class="digtime"></span>
                </li>
                <li>
                    算力来源
                    <span style="margin-left: 0.72rem;" class="calculateSource"></span>
                </li>
            </ul>
        </div>
        <div class="suanli">
            <ul>
                <li>基础算力 <span class="base">0T</span></li>
            </ul>
        </div>
        <div class="intrduction">
            <ul>
                <li>
                    <p>算力介绍</p>
                    <div></div>
                </li>
                <li>
                    <p>合约说明</p>
                    <div></div>
                </li>
                <li>
                    <p>风险介绍</p>
                    <div></div>
                </li>
                <li>
                    <p>免责申明</p>
                    <div>
                        平台不对用户获得的数字资产进行精准承诺，收益数量根据挖矿产出按照算力贡献分发，挖矿收益受市场行情波动影响非恒定，平台历史同期各种数据仅供参考，用户应自己独立判断后做出决策，自愿下单共享算力进行数字资产投资的用户，其行为产生的投资风险由用户自行承担。
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div id="fixBtn">
        <div class="next inputNull" data-status="">立即承接</div>
    </div>
    <div class="cover">
        <div class="suanli-list">
            <div class="list-up">
                <p>奖励算力</p>
                <p class="numAll">0T</p>
            </div>
            <div class="list-down">
                <ul>
                    <li>浮动算力 <span class="float"> 0T </span></li>
                    <li>期货算力 <span class="qihuo"> 0T </span></li>
                    <li>定期算力 <span class="stand"> 0T </span></li>
                    <li>达标算力 <span class="pepower"> 0T </span></li>
                    <li>成长奖励 <span class="calculatePower">0T</span></li>
                </ul>
            </div>
        </div>
        <div class="off-cover" style="margin: auto;">
            <img src="../../image/forcedetailindow.png" style="width: 0.61rem;height: 0.61rem;" />
        </div>
    </div>
    <div class="cover-full" style="display: none;">
        <div class="enntueList">
            <div class="entrudetail">
                我的有效算龄
                <span class="todaynum" style="color: #181818;font-weight: 500;font-size: 0.35rem;margin-top: 0.45rem;">
                    0.00T*天
                </span>
            </div>
            <div class="showText"
                style="font-size: 0.24rem;width:100%;margin: auto;height: auto;padding: 0.48rem 0.2rem 0.73rem 0.2rem;border-top: 1px solid #e2e2e2;box-sizing: border-box;">
                人人矿场将在全球率先开创pow+pos的深度混合模式进行数字货币的“挖掘”,矿场会根据您当前的可信算力时长(T*天)进行人人矿场的算力额度授信,授信方式为等值的BHP,届时您可用此授信额度进行矿机的下单,下单的矿场算力在产出btc的同时还会附加产出一定比例的BHP,BHP可到交易市场进行流通！
            </div>
            <div class="off-covernew" style="margin: auto;">
                <img src="../../image/forcedetailindow.png" style="width: 0.61rem;height: 0.61rem;" />
            </div>
        </div>
    </div>
    <div class="undertakePower" style="display: none;">
        <div class="undertakePowerBox">
            <div class="undertakePowerHead">
                承接算力合约包说明
            </div>
            <div class="underTexttips"
                style="font-size: 0.24rem;width:100%;margin: auto;height: auto;padding:0 0.6rem 0 0.56rem;box-sizing: border-box;">
                <p>
                    <span>
                        1. 开挖时间
                    </span>
                    <span>
                        租用次日开挖
                    </span>
                </p>
                <p>
                    <span>
                        2. 转让之后，再次转让时有哪些限制？
                    </span>
                    <span>
                        合约期30天内不可转让
                    </span>
                </p>
                <p>
                    <span>
                        3. 转让期算龄怎么计算？
                    </span>
                    <span>
                        转让期算龄继续计算，转让成功后，则转让人减去算龄，承租人加上算龄
                    </span>
                </p>
            </div>
            <p
                style="width:100%;height:auto;text-align:center; color: #ff6868;margin-bottom: 0.7rem;font-size: 0.26rem;font-weight: 540;">
                人人矿场在法律允许范围内拥有最终解释权
            </p>
        </div>
        <div class="off-covernew" style="margin: auto;">
            <img src="../../image/forcedetailindow.png" style="width: 0.61rem;height: 0.61rem;" />
        </div>
    </div>
    <script src="../../script/autosize.js"></script>
    <script src="../../script/jquery_three_two_one.js"></script>
    <script src="../../script/fastclick.js"></script>
    <script src="../../script/app.js"></script>
    <script>
        apiready = function () {
            var app = new APP();
            if (app.isiPhone10) {
                $(".phoneToast").height("30px");
                $("#fixBtn").css("padding-bottom", "30px");
                var bodyPa = Number($("#fixBtn").height()) + 10 + 30;
                $("body").css("padding-bottom", bodyPa + "px");
            }
            var machineId = api["pageParam"]["itemId"];
            var machineTypeNew = api["pageParam"]["machineType"];
            $("#goback").on("click", function () {
                api.closeWin();
            });

            function loadpage(machineId) {
                var account = app.getAccount();
                app.ajax({
                    param: {
                        method: "post",
                        url: app.config.url + "machine/detail",
                        data: {
                            values: {
                                machine_id: machineId,
                                uid: account.uid,
                                token: account.token,
                                machine_type: machineTypeNew
                            }
                        },
                        callback: function (ret, err) {
                            console.log("--------------------" + JSON.stringify(ret));
                            //判断单台算力单位
                            if (ret.machine.currency_name === "BTC") {
                                machineUnit = "TH/s";
                            } else if (
                                ret.machine.currency_name === "ETH" ||
                                ret.machine.currency_name === "LTC"
                            ) {
                                machineUnit = "MH/s";
                            }
                            $(".todaynum").text(
                                (ret.power_time == 0 ? "0.00" : ret.power_time) + "T*天"
                            );
                            var limitRentUnit = "T";
                            if (ret.machine.currency_name != "BTC") {
                                limitRentUnit = "M";
                            }
                            $(".base").text(
                                Number(ret.machine.base_power) + limitRentUnit + "/份"
                            );
                            $(".float").text(Number(ret.machine.float_power) + limitRentUnit);
                            $(".qihuo").text(Number(ret.machine.futures_power) + limitRentUnit);
                            $(".stand").text(Number(ret.machine.regular_power) + limitRentUnit);
                            $(".pepower").text(Number(ret.machine.pe_power) + limitRentUnit);
                            $(".calculatePower").text(ret.machine.td_power == undefined ? ("0" + limitRentUnit) : (Number(ret.machine.td_power) + limitRentUnit));
                            var addRewardPower = app.moreAccAdd(ret.machine.float_power, ret.machine.futures_power, ret.machine.regular_power, ret.machine.pe_power, (ret.machine.td_power == undefined ? "0" : Number(ret.machine.td_power)));
                            $(".numAll").text(addRewardPower + limitRentUnit + "/份");
                            //处理机器是否能租用
                            if (ret.machine.num_left == 0 && ret.machine.num_sum != 0) {
                                $(".next")
                                    .addClass("inputNotNull")
                                    .removeClass("inputNull");
                                $(".next").text("已售罄").attr("data-status", "norent");
                            } else if (ret.machine.num_left != 0 && ret.machine.num_sum != 0) {
                                $(".next").text("立即下单").attr("data-status", "okrent");
                            } else if (ret.machine.num_sum == 0) {
                                $(".next").text("关注").attr("data-status", "okfous");
                            }
                            //处理机器数据详情
                            //产品名称
                            $(".name-th").text(ret.machine.name);
                            //单台算力
                            $(".limit-th").text(ret.machine.num_limit);
                            $(".digtime").text(ret.machine.time_income);
                            $(".calculateSource").text(ret.node_name);
                            $(".disnum").text(
                                app.accMul(ret.machine.base_power, ret.machine.num_left) +
                                limitRentUnit
                            );
                            $(".numadd span:first-of-type").text(
                                app.accMul(ret.machine.base_power, ret.machine.num_limit) +
                                limitRentUnit
                            );
                            // $(".data-detail li:first-of-type span").text(
                            //   ret.machine.speed + "个/月"
                            // );
                            if (ret.machine.is_bhp_pos == 1) {
                                $(".bhpcshow").show();
                                $(".machine-type").css({
                                    width: "auto"
                                });
                                $(".machine-type span").css({
                                    width: "auto",
                                    borderColor: "#dee3ff",
                                    padding: "0 0.1rem"
                                });
                                $(".machine-type span:last-of-type").css({
                                    backgroundColor: "#dee3ff"
                                });
                            }
                            $(".machine-type span:first-of-type").text(
                                ret.machine.is_bhp_pos == 1 ?
                                    ret.machine.currency_name + "+" + "BHP" :
                                    ret.machine.currency_name
                            );
                            //产品租金
                            $(".deposit").text(
                                ret.machine.is_bhp_pos == 1 ?
                                    ret.machine.goods_deposit_bcny :
                                    ret.machine.goods_deposit
                            );
                            //产品期限
                            $(".daylimit span").text(
                                ret.machine.is_regular == 0 ?
                                    "30天" :
                                    ret.machine.regular_date_num + "天"
                                // : "固定期限"+ret.regular_date_num+"天"
                            );
                            $(".moneyType").text(
                                ret.machine.is_bhp_pos == 1 ? " BCNY" : " CNY"
                            );
                            $(".machine-type span:last-of-type").text(
                                ret.machine.is_regular == 0 ? "活期" : "定期"
                            );
                            //开挖时间
                            // $(".data-detail li:last-of-type span").text(
                            //   ret.machine.time_buy.substring(0, 10)
                            // );
                            // 算力简绍
                            $(".intrduction li:first-of-type div").text(
                                ret.machine.des_computingpower
                            );
                            // 合约说明
                            $(".intrduction li:nth-of-type(2) div").text(
                                ret.machine.des_contract
                            );
                            // 风险简绍
                            $(".intrduction li:nth-of-type(3) div").text(ret.machine.des_rish);

                            //处理租用事件
                            $(".next").on("click", function () {
                                var getName = $(this).attr("data-status");
                                if (getName == "norent") {
                                    app.toast("没有设备可租");
                                } else if (getName == "okfous") {
                                    app.toast("关注官方发布预告");
                                } else {
                                    if (account == null) {
                                        app.goLogin();
                                    } else {
                                        var goPage = {
                                            page: "common/headerwin",
                                            name: "machine_rent_headerwin",
                                            param: {
                                                subpage: "rent/machine_newrent",
                                                name: "machine_rent",
                                                title: "详情",
                                                machinename: ret.machine.name,
                                                machineid: machineId,
                                                num_left: ret.machine.num_left,
                                                checkRegular: ret.machine.is_regular,
                                                num_limit: Number(ret.machine.num_limit),
                                                onceNumlimit: Number(ret.machine.once_limit),
                                                goods_deposit: ret.machine.goods_deposit,
                                                is_bhp_pos: ret.machine.is_bhp_pos,
                                                goods_deposit_bhpc: ret.machine.goods_deposit_bcny,
                                                is_big_customer: ret.machine.is_big_customer,
                                                minRent: ret.machine.num_min_limit,
                                                machineType: ret.machine.currency_name,
                                                machineTypeNew: machineTypeNew,
                                                machineData: ret.machine
                                            }
                                        };
                                        var addPhone = JSON.stringify(goPage);
                                        app.goPushPage(addPhone);
                                    }
                                }
                            });
                        }
                    }
                });
            }
            loadpage(machineId);
            $(".allowget").on("click", function () {
                $(".cover").show();
                $(".cover").fadeIn(50, function (param) {
                    $(".suanli-list").slideDown(80);
                    $(".off-cover").show();
                });
            });
            $(".off-cover").click(function () {
                $(".suanli-list").slideUp(80, function (param) {
                    $(".cover").fadeOut(50);
                });
            });
            $(".showlistnew").on("click", function (e) {
                $(".cover-full").bind("touchmove", function (e) {
                    e.preventDefault();
                });
                $(".cover-full").show();
                $(".cover-full").fadeIn(50, function (param) {
                    $(".enntueList").slideDown(80);
                    $(".off-cover").show();
                });
            });
            $(".off-covernew").click(function () {
                $(".enntueList").slideUp(80, function (param) {
                    $(".cover-full").fadeOut(50);
                });
            });
        };
    </script>
</body>

</html>